/*
 * @Descripttion: 
 * @version: 
 * @Author: 高月飞
 * @Date: 2023-11-17 21:04:10
 * @LastEditors: 高月飞
 * @LastEditTime: 2023-11-24 21:06:10
 */
import type { RouteRecordRaw } from "vue-router";
import { Setting } from '@element-plus/icons-vue';

const routes: RouteRecordRaw[] = [
    //合同管理
    {
        path: '/contract',
        redirect: "/contract/all",
        component: () => import('@/views/Contract/index.vue'),
        meta: {
            menu: '合同管理',
            icon: "icon-hetongguanli",
        },
        children: [
            //全部合同
            {
                path: '/contract/all',
                component: () => import('@/views/Contract/All/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '合同管理' },
                        { title: '管理列表' },
                        { to: '/contract/all', title: '全部合同' }
                    ],
                    menu: '全部合同',
                      icon: "icon-hetongguanli",
                },
            },
            //我的合同
            {
                path: '/contract/mine',
                component: () => import('@/views/Contract/Mine/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '合同管理' },
                        { title: '管理列表' },
                        { to: '/contract/mine', title: '我的合同' }
                    ],
                    menu: '我的合同',
                    con: "icon-kehuguanli",
                },
            },
            //下属合同
            {
                path: '/contract/subordinate',
                component: () => import('@/views/Contract/Subordinate/index.vue'),
                meta: {
                    breadcrumbs: [
                        { title: '合同管理' },
                        { title: '管理列表' },
                        { to: '/contract/subordinate', title: '下属合同' }
                    ],
                    menu: '下属合同',
                    con: "icon-kehuguanli",
                },
            },


        ]
    },
];

export default routes;
